home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / role / TACL.lha / TACL / JungleSource.zoo / JungleRooms < prev    next >
Text File  |  1989-09-11  |  8KB  |  367 lines

  1. *
  2. * Sample T.A.C.L. Adventure Game source code © 1989 by Kevin Kelm
  3. * 10 points possible this file!
  4. ROOM Float_Plane
  5.  
  6. ATTRIB
  7.  FirstTurn Y
  8. ENDATTRIB
  9.  
  10. DEFAULT
  11.  E River_Clearing
  12. ENDDEFAULT
  13.  
  14. CODE
  15.  IF PLAYER HAS Idol THEN
  16.   T You climb back into your float plane, stow your gear, place the idol on
  17.   T the co-pilot's seat, and start the plane.  After a few sputters, the
  18.   T engine roars to life and carries you and your prize to the glory and
  19.   T fame that awaits you back in civilization.
  20.   T
  21.   T   ~iCONGRATULATIONS, ADVENTURER! ~n
  22.   T  You have successfully completed a T.A.C.L. adventure game!
  23.   T  Would you like the power to ~bmake your own~n adventure games with
  24.   T  T.A.C.L.?  If so, contact:
  25.   T
  26.   T  Micro Momentum, Inc.
  27.   T  P.O. Box 372
  28.   T  Washington Depot, CT 06794
  29.   T  1 (800) 448-7421
  30.   T
  31.   T  We might be interested in marketing ~iYOUR ~nT.A.C.L. adventure games!
  32.   SCORE 10
  33.   SHOW VictoryScreen       * Yeeaahh!
  34.   CALL WeHaveAWinner
  35.  
  36.  ELSIF Float_Plane IS FirstTurn THEN
  37.   UNSET Float_Plane FirstTurn
  38.   T
  39.   T
  40.   T
  41.   T
  42.   T      Welcome to "Jungle," a sample T.A.C.L. Adventure Game which
  43.   T demonstrates many, but by no means all, of The Adventure Contruction
  44.   T Language's capabilities.  This game was put together in less than 4
  45.   T day's worth of work; the adventure was planned for several hours, I
  46.   T actually ~iwrote ~nit in only 1 day, and spent the next three days
  47.   T putting together the graphics.  (No wisecracks!  I never said I was
  48.   T a good artist!  :^)
  49.   T
  50.   T      Just imagine what a ~iREAL ~nadventure guru could do!  We hope you
  51.   T enjoy (~band solve!~n) the game.  If you have trouble, you may refer to
  52.   T the included T.A.C.L. source code that created this adventure game.
  53.   T
  54.   T                  ~r  HAVE FUN!  ~n
  55.   T
  56.   SHOW WelcomeScreen             * "SHOW" displays an image NOW
  57.   T
  58.   T
  59.      * I think there is a "PRESS RETURN" right about HERE to pause!
  60.   T
  61.   T
  62.   T You guide the single-engine float plane in for a landing on the
  63.   T swift waters of a river in the middle of a dense jungle.  The plane
  64.   T glides into the east shore and comes to a rest on the bank.  After
  65.   T an arduous journey and years of planning, you have finally found your
  66.   T way to the legendary ruins of an ancient Mayan temple.  The mere thought
  67.   T of the golden idol sends chills down your spine.
  68.   IMAGE Float_Plane In_Plane     * "IMAGE" tells which image to use if...
  69.   SHOW In_Plane                  * ...the player clicks in image window
  70.  ELSIF Float_Plane NOT VISITED THEN
  71.   T You are sitting comfortably in your single-engine float plane on a
  72.   T winding river in the middle of a dense, gloomy jungle.
  73.   SHOW In_Plane
  74.  
  75.  ELSE
  76.   T Your float plane.
  77.  ENDIF
  78.  T
  79.  
  80. ENDCODE
  81.  
  82. ENDROOM
  83. *
  84. *
  85. *
  86. ROOM River_Clearing
  87.  
  88. DEFAULT
  89.  N  Lost_In_Jungle
  90.  NE Lost_In_Jungle
  91.  E  Jungle_Path
  92.  SE Lost_In_Jungle
  93.  S  Lost_In_Jungle
  94.  SW River
  95.  W  Float_Plane
  96.  NW River
  97. ENDDEFAULT
  98.  
  99. CODE
  100.  IF River_Clearing NOT VISITED THEN
  101.   T You are standing in a small, grassy clearing between the river to the
  102.   T east and a jungle forest which surrounds you to the north, east and
  103.   T south.  Your float plane is on the river to the west.
  104.   IMAGE River_Clearing Jungle
  105.   SHOW Jungle
  106.  ELSE
  107.   T River Clearing.
  108.  ENDIF
  109. ENDCODE
  110.  
  111. ENDROOM
  112. *
  113. *
  114. *
  115. ROOM Lost_In_Jungle     * once you get here, you aren't getting out!
  116.  
  117. DEFAULT
  118.  N  Lost_In_Jungle
  119.  E  Lost_In_Jungle
  120.  S  Lost_In_Jungle
  121.  W  Lost_In_Jungle
  122.  SE Lost_In_Jungle
  123.  NW Lost_In_Jungle
  124.  SW Lost_In_Jungle
  125.  NE Lost_In_Jungle
  126. ENDDEFAULT
  127.  
  128. CODE
  129.  T You are lost in the dense foliage of the jungle.
  130.  IMAGE Lost_In_Jungle Jungle
  131.  
  132.  RANDOM Temp 15
  133.  IF Temp = 0 THEN
  134.   T You are killed and eaten by a jungle cat!
  135.   CALL BuyTheFarm
  136.  ELSIF Temp = 1 THEN
  137.   T You are sucked dry by 10,000 mosquitos!
  138.   CALL BuyTheFarm
  139.  ELSIF Temp = 2 THEN
  140.   T You slip into a bog of quicksand and suffocate!
  141.   CALL BuyTheFarm
  142.  ELSIF Temp = 3 THEN
  143.   T The biggest snake you've ever seen gets friendly with you.  ~iTOO ~n
  144.   T friendly.  It hugged you to death!
  145.   CALL BuyTheFarm
  146.  ELSIF Temp = 4 THEN
  147.   T Some friendly natives ask you to dinner.  You accept, only to find out
  148.   T later that they are ~inot ~nvery friendly and that really they are
  149.   T having you ~ifor ~ndinner!
  150.   CALL BuyTheFarm
  151.  ELSE
  152.   T Who knows what forms of death may lurk here?!?
  153.  ENDIF
  154.  T
  155. ENDCODE
  156.  
  157. ENDROOM
  158. *
  159. *
  160. *
  161. ROOM River     * this is the end of the line!
  162.  
  163. CODE
  164.  T You foolishly wade into the river.  Remember all those gruesome stories
  165.  T about how fast pirahnas eat?  They weren't exaggerating!  Before you can
  166.  T make it back to the shore or dive for your plane, they reduce you to
  167.  T hamburger.  You distinctly hear small, satisified burps as you slip
  168.  T into oblivion.
  169.  CALL BuyTheFarm
  170. ENDCODE
  171.  
  172. ENDROOM
  173. *
  174. *
  175. *
  176. ROOM Jungle_Path
  177.  
  178. DEFAULT
  179.  N  Dark_Jungle
  180.  NE Lost_In_Jungle
  181.  E  Lost_In_Jungle
  182.  SE Lost_In_Jungle
  183.  S  Lost_In_Jungle
  184.  SW Lost_In_Jungle
  185.  W  River_Clearing
  186.  NW Lost_In_Jungle
  187.  U  Forest_Canopy
  188. ENDDEFAULT
  189.  
  190. CODE
  191.  IF Jungle_Path NOT VISITED THEN
  192.   T You've managed to find a faint path into the greenery.  You are
  193.   T surrounded in all directions by a seemingly impenetrable jungle.
  194.   IMAGE Jungle_Path Jungle_Tree
  195.   SHOW Jungle_Tree
  196.  ELSE
  197.   T Jungle Path.
  198.  ENDIF
  199.  PLACEOBJ Big_Tree Jungle_Path  * so the player can see tree here
  200. ENDCODE
  201.  
  202. ENDROOM
  203. *
  204. *
  205. *
  206. ROOM Forest_Canopy
  207.  
  208. DEFAULT
  209.  D Jungle_Path
  210. ENDDEFAULT
  211.  
  212. CODE
  213.  IF Forest_Canopy NOT VISITED THEN
  214.   T You find yourself about 40 feet above the ground on a large and solid-
  215.   T looking limb.  There is a bit more light up here than on the forest
  216.   T floor.
  217.   IMAGE Forest_Canopy In_Tree
  218.   SHOW In_Tree
  219.  ELSE
  220.   T Forest Canopy.
  221.  ENDIF
  222.  PLACEOBJ Big_Tree Forest_Canopy  * so same object "seen" in both rooms
  223. ENDCODE
  224.  
  225. ENDROOM
  226. *
  227. *
  228. *
  229. ROOM Dark_Jungle
  230.  
  231. DEFAULT
  232.  N  Lost_In_Jungle
  233.  NE Lost_In_Jungle
  234.  E  Small_Meadow
  235.  SE Lost_In_Jungle
  236.  S  Jungle_Path
  237.  SW Lost_In_Jungle
  238.  W  Lost_In_Jungle
  239.  NW Lost_In_Jungle
  240. ENDDEFAULT
  241.  
  242. CODE
  243.  IF Dark_Jungle NOT VISITED THEN
  244.   T You are deep in this gloomy jungle.  There is very little light, save
  245.   T that filtering through the thick canopy about you.  There is a hush
  246.   T about this area; the normal jungle sounds have ceased.
  247.   IMAGE Dark_Jungle Jungle
  248.   SHOW Jungle
  249.  ELSE
  250.   T Dark Jungle.
  251.  ENDIF
  252. ENDCODE
  253.  
  254. ENDROOM
  255. *
  256. *
  257. *
  258. ROOM Small_Meadow
  259.  
  260. DEFAULT
  261.  N  Lost_In_Jungle
  262.  NE Lost_In_Jungle
  263.  E  Cavern_Entrance
  264.  SE Lost_In_Jungle
  265.  S  Lost_In_Jungle
  266.  SW Lost_In_Jungle
  267.  W  Dark_Jungle
  268.  NW Lost_In_Jungle
  269.  D  Cavern_Entrance
  270. ENDDEFAULT
  271.  
  272. CODE
  273.  IF InCaverns = 1 THEN
  274.   T You step blinking into the daylight as your eyes adjust to the
  275.   T brightness.
  276.  EQU InCaverns 0
  277.  ENDIF
  278.  IF Small_Meadow NOT VISITED THEN
  279.   T You are in a small meadow that lies between the black, mossy rocks of a
  280.   T cliff face to the east and the surrounding jungle.  At the base of the
  281.   T cliff is the mouth of a cavern.  Cold, stale air eminates from it.
  282.   IMAGE Small_Meadow SMeadow
  283.   SHOW SMeadow
  284.  ELSE
  285.   T Small Meadow.
  286.  ENDIF
  287. ENDCODE
  288.  
  289. ENDROOM
  290. *
  291. *
  292. *
  293. ROOM Ledge
  294.  
  295. DEFAULT
  296.  S Cobble_Crawl
  297.  D Falling
  298. ENDDEFAULT
  299.  
  300. CODE
  301.  IF InCaverns = 1 THEN
  302.   T You emerge blinking into the daylight!
  303.   EQU InCaverns 0
  304.  ENDIF
  305.  
  306.  IF Ledge NOT VISITED THEN
  307.   T You are on a mossy, north-facing ledge about 50 feet above the jungle
  308.   T floor.  You spot your float plane near the clearing almost directly
  309.   T below and to the north!
  310.   IMAGE Ledge Cliff_Ledge1
  311.   IF Vine IS Tied THEN
  312.    SHOW Cliff_Ledge2
  313.   ELSE
  314.    SHOW Cliff_Ledge1
  315.   ENDIF
  316.  ELSE
  317.   T Ledge.
  318.  ENDIF
  319. ENDCODE
  320.  
  321. ENDROOM
  322. *
  323. *
  324. *
  325. ROOM Falling
  326.  
  327. CODE
  328.  T You step over the edge into thin air.  You then fall ~iout ~nof thin air
  329.  T and ~ionto ~n a rather hard bit of ground.
  330.  CALL BuyTheFarm
  331. ENDCODE
  332.  
  333. ENDROOM
  334. *
  335. *
  336. *
  337. ROOM River_Path
  338.  
  339. DEFAULT
  340.  N River_Clearing
  341.  NE Lost_In_Jungle
  342.  E Lost_In_Jungle
  343.  SE Lost_In_Jungle
  344.  SW River
  345.  W River
  346.  NW River
  347. ENDDEFAULT
  348.  
  349. CODE
  350.  T You are on a small path that leads to the north along the river.
  351.  IMAGE River_Path Along_River
  352.  SHOW Along_River
  353. ENDCODE
  354.  
  355. ENDROOM
  356. *
  357. *
  358. *
  359. ROOM NoWhere  * not really a jungle room, but it has to be somewhere
  360.               * ... or does it??? :-)  ... This is a "stash" room.
  361. CODE
  362. ENDCODE
  363. ENDROOM
  364. *
  365. * --- END OF FILE
  366. *
  367.